package stat;

public class MaxMPDerivedStat extends DerivedStat {
    
    private final int baseVal = 100;
    
    public MaxMPDerivedStat( StatType st, Stat... toCache) {
        super(st, toCache);
        compute();
    }
    
    public MaxMPDerivedStat( StatType st, int value, Stat... toCache) {
        super(st, value, toCache);
        //compute();
    }
    
    /**
     * compute max mp from level and intellect
     */
    public void compute() {
        setValue(baseVal + getFromCache(StatType.LEVEL)*5 + getFromCache(StatType.INT)*10);
    }
}
